package com.example.demo.controller;

import com.example.demo.annotation.LoginUser;
import com.example.demo.common.R;
import com.example.demo.entity.User;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import springfox.documentation.annotations.ApiIgnore;

@RestController
@RequestMapping("/test")
@Slf4j
public class testController {

    @PostMapping("/test")
    public R test(@ApiIgnore @LoginUser User user)
    {
        return R.success(user);
    }

}
